<?php
require_once('../core/safeParam.php');
require_once('../includes/config.php');
require_once('../core/database.php');
require_once('../core/locations.php');

$module = new module();
$function = $_GET['function'];


switch($function) {
  case "add" :
    $module->Add($_POST);
    break;

  case "edit" :
    $module->Edit($_POST);
    break;

  case "delete" :
    $module->Delete($_GET);
    break;

  case "delete-zone" :
    $module->DeleteZone($_GET);
    break;

  case "delete-area" :
    $module->DeleteArea($_GET);
    break;


  case "add-zone" :
    $module->AddZone($_POST);
    break;

  case "add-zone-loc" :
    $module->AddZoneLoc($_POST);
    break;

}
?>
